// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
// 引入elementUi
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App'
import router from './router'
import Http from '@/api/http'
// 兼容ie
import "babel-polyfill"
// 引入icon
import './assets/icon/iconfont.css'
import has from './directive/permission/btnPermissions'
import store from './store'
Vue.use(ElementUI)

Vue.config.productionTip = false

Vue.prototype.$axios = Http;
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>',
   data: {
        // 空的实例放到根组件下，所有的子组件都能调用
        Bus: new Vue()
    }
})
